import { defineStore } from 'pinia';
import { reactive, ref } from 'vue';

export const useUserInfo = defineStore('user', () => {
	let count = ref(20)
	const userInfo = reactive({
		nickname: '小明',
		age: 20
	})
	
	const increment = () => {
		count.value++
		console.log(count.value);
	}
	
	return {
		userInfo,
		count,
		increment
	}
})